<?

$content =  $this->content  ;
$status = $this->status   ;
$folder = $this->folder ;
$project_folder = $this->project_folder ; 

//print_r($content); 


?>
  
  
  
  
  <table class="tree-browser" cellpadding="0" cellspacing="0">
        <thead>
        <tr class="header">
          <th></th>
          <th>name</th>

          <th>age</th>
          <th>
            <div class="history">
              <a href="/bsdperimeter/pfsense-packages/commits/master/" rel="nofollow">history</a>
            </div>
            message
          </th>
        </tr>

        </thead>
        <tbody>


<?
 
$lastdir = explode("/",$folder) ;
for($i=0 ; sizeof($lastdir) -2   > $i ; $i ++ )
{
	$dir .=  $lastdir[$i]."/" ;
		
}


if($project_folder != $folder )
{ 
?>
		<tr class="alt">
		            <td class="icon"></td>
		            <td class="content"> <a style="cursor:pointer" onclick="opendir('<?php echo  $dir  ?>')"    class="js-slide-to js-rewrite-sha" >... </a></td>
		            <td class="age"> <time class="js-relative-date" datetime="2012-01-23T22:06:03-08:00" title="2012-01-23 22:06:03"></time> </td>
		            <td class="message"> <a href="/bsdperimeter/pfsense-packages/commit/dc555615f68325945ff12c35cf5d9ea0dccdf4ee" class="message"></a> </td>
		 </tr>
	<?
} 



	//asort($content) ; 
	
	for($i = 1 ; sizeof($content) + 1  > $i ; $i ++)
	{

		if($content[$i]["TYPE"] == "D") 
		{ 
			?>	
			 <tr class="alt">
			 <?php if($content[$i]["TYPE"] == "D"){ $img = "dir.png"; }  else { $img = "txt.png" ; } ?>
			            <td class="icon"> <img alt="directory" height="16" src="/svnapproval/img/<? echo $img ?>" width="16" /> </td>
			            <td class="content"> <a style="cursor:pointer" onclick="opendir('<?php echo  $content[$i]["NAME"] ; ?>')"    class="js-slide-to js-rewrite-sha" ><?php echo  str_replace("//","",$content[$i]["NAME"]) ; ?> </a></td>
			            <td class="age"> <time class="js-relative-date" datetime="2012-01-23T22:06:03-08:00" title="2012-01-23 22:06:03"><?php echo date ("F d Y H:i:s",filemtime(str_replace("//","",$content[$i]["NAME"]))) ?></time> </td>
			            <td class="message"> <a href="/bsdperimeter/pfsense-packages/commit/dc555615f68325945ff12c35cf5d9ea0dccdf4ee" class="message">removes the gratioutous use of killall and kill -9 in place </a> </td>
			 </tr>
			<?
		}	
	}
	
	
	// files 
	for($i = 1 ; sizeof($content) + 1  > $i ; $i ++)
	{
		if($content[$i]["TYPE"] != "D") 
		{ 
			?>	
			 <tr class="alt">
			 <?php if($content[$i]["TYPE"] == "D"){ $img = "dir.png"; }  else { $img = "txt.png" ; } ?>
			            <td class="icon"> <img alt="directory" height="16" src="/svnapproval/img/<? echo $img ?>" width="16" /> </td>
			            <td class="content"> <a style="cursor:pointer" onclick="opendir('<?php echo  $content[$i]["NAME"] ; ?>')"    class="js-slide-to js-rewrite-sha" ><?php echo  $content[$i]["NAME"] ; ?> </a></td>
			            <td class="age"> <time class="js-relative-date" datetime="2012-01-23T22:06:03-08:00" title="2012-01-23 22:06:03">January 23, 2012</time> </td>
			            <td class="message"> <a href="/bsdperimeter/pfsense-packages/commit/dc555615f68325945ff12c35cf5d9ea0dccdf4ee" class="message">removes the gratioutous use of killall and kill -9 in place of using …</a> </td>
			 </tr>
			<?
		}
	
	}
	
?>
          
        </tbody>

      </table>